
if (typeof firstText == "undefined") 
	firstText = "First"; 
    if (typeof lastText == "undefined") 
	lastText = "Last";
    var noPage;
    var currentPage;
    var currentPageNo;
    var postLabel;
    pagecurrentg();

    function looppagecurrentg(pageInfo) {
        var html = '';
        pageNumber = parseInt(numPages / 2);
        if (pageNumber == numPages - pageNumber) {
            numPages = pageNumber * 2 + 1
        }
        pageStart = currentPageNo - pageNumber;
        if (pageStart < 1) pageStart = 1;
        lastPageNo = parseInt(pageInfo / perPage) + 1;
        if (lastPageNo - 1 == pageInfo / perPage) lastPageNo = lastPageNo - 1;
        pageEnd = pageStart + numPages - 1;
        if (pageEnd > lastPageNo) pageEnd = lastPageNo;
        html += "<span class='showpageOf'>Page " + currentPageNo + ' of ' + lastPageNo + "</span>";
        var prevNumber = parseInt(currentPageNo) - 1;
      
		//Iccsi was here, doing magic      
        if (currentPageNo > 1) {
			if (currentPage == "page") {
			  html += '<span class="showpage firstpage"><a href="' + home_page + '">' + firstText + '</a></span>'
			} else {
			  html += '<span class="displaypageNum firstpage"><a href="/search/label/' + postLabel + '?&max-results=' + perPage + '">' + firstText + '</a></span>'
			}
		}
		
		if (currentPageNo > 2) {
            if (currentPageNo == 3) { 
                if (currentPage == "page") {
                    html += '<span class="showpage"><a href="' + home_page + '">' + prevText + '</a></span>'
                } else {
                    html += '<span class="displaypageNum"><a href="/search/label/' + postLabel + '?&max-results=' + perPage + '">' + prevText + '</a></span>'
                }
            } else {
                if (currentPage == "page") {
                    html += '<span class="displaypageNum"><a href="#" onclick="redirectpage(' + prevNumber + ');return false">' + prevText + '</a></span>'
                } else {
                    html += '<span class="displaypageNum"><a href="#" onclick="redirectlabel(' + prevNumber + ');return false">' + prevText + '</a></span>'
                }
            }
        }
        if (pageStart > 1) {
            if (currentPage == "page") {
                html += '<span class="displaypageNum"><a href="' + home_page + '">1</a></span>'
            } else {
                html += '<span class="displaypageNum"><a href="/search/label/' + postLabel + '?&max-results=' + perPage + '">1</a></span>'
            }
        }
        if (pageStart > 2) {
            html += ' ... '
        }
        for (var jj = pageStart; jj <= pageEnd; jj++) {
            if (currentPageNo == jj) {
                html += '<span class="pagecurrent">' + jj + '</span>'
            } else if (jj == 1) {
                if (currentPage == "page") {
                    html += '<span class="displaypageNum"><a href="' + home_page + '">1</a></span>'
                } else {
                    html += '<span class="displaypageNum"><a href="/search/label/' + postLabel + '?&max-results=' + perPage + '">1</a></span>'
                }
            } else {
                if (currentPage == "page") {
                    html += '<span class="displaypageNum"><a href="#" onclick="redirectpage(' + jj + ');return false">' + jj + '</a></span>'
                } else {
                    html += '<span class="displaypageNum"><a href="#" onclick="redirectlabel(' + jj + ');return false">' + jj + '</a></span>'
                }
            }
        }
        if (pageEnd < lastPageNo - 1) {
            html += '...'
        }
        if (pageEnd < lastPageNo) {
            if (currentPage == "page") {
                html += '<span class="displaypageNum"><a href="#" onclick="redirectpage(' + lastPageNo + ');return false">' + lastPageNo + '</a></span>'
            } else {
                html += '<span class="displaypageNum"><a href="#" onclick="redirectlabel(' + lastPageNo + ');return false">' + lastPageNo + '</a></span>'
            }
        }


        var nextnumber = parseInt(currentPageNo) + 1;
        if (currentPageNo < (lastPageNo - 1)) {
            if (currentPage == "page") {
                html += '<span class="displaypageNum"><a href="#" onclick="redirectpage(' + nextnumber + ');return false">' + nextText + '</a></span>'
            } else {
                html += '<span class="displaypageNum"><a href="#" onclick="redirectlabel(' + nextnumber + ');return false">' + nextText + '</a></span>'
            }
		}
		
		if (currentPageNo < lastPageNo) {
			//Iccsi was here, doing magic
			if (currentPage == "page") {
			  html += '<span class="displaypageNum lastpage"><a href="#" onclick="redirectpage(' + lastPageNo + ');return false">' + lastText + '</a></span>'
			} else {
			  html += '<span class="displaypageNum lastpage"><a href="#" onclick="redirectlabel(' + lastPageNo + ');return false">' + lastText + '</a></span>'
			}
        }

        var pageArea = document.getElementsByName("pageArea");
        var blogPager = document.getElementById("blog-pager");
        for (var p = 0; p < pageArea.length; p++) {
            pageArea[p].innerHTML = html
        }
        if (pageArea && pageArea.length > 0) {
            html = ''
        }
        if (blogPager) {
            blogPager.innerHTML = html
        }
    }

    function totalcountdata(root) {
        var feed = root.feed;
        var totaldata = parseInt(feed.openSearch$totalResults.$t, 10);
        looppagecurrentg(totaldata)
    }

    function pagecurrentg() {
        var thisUrl = urlactivepage;
        if (thisUrl.indexOf("/search/label/") != -1) {
            if (thisUrl.indexOf("?updated-max") != -1) {
                postLabel = thisUrl.substring(thisUrl.indexOf("/search/label/") + 14, thisUrl.indexOf("?updated-max"))
            } else {
                postLabel = thisUrl.substring(thisUrl.indexOf("/search/label/") + 14, thisUrl.indexOf("?&max"))
            }
        }
        if (thisUrl.indexOf("?q=") == -1 && thisUrl.indexOf(".html") == -1) {
            if (thisUrl.indexOf("/search/label/") == -1) {
                currentPage = "page";
                if (urlactivepage.indexOf("#PageNo=") != -1) {
                    currentPageNo = urlactivepage.substring(urlactivepage.indexOf("#PageNo=") + 8, urlactivepage.length)
                } else {
                    currentPageNo = 1
                }
                document.write("<script src=\"" + home_page + "feeds/posts/summary?max-results=1&alt=json-in-script&callback=totalcountdata\"><\/script>")
            } else {
                currentPage = "label";
                if (thisUrl.indexOf("&max-results=") == -1) {
                    perPage = 20
                }
                if (urlactivepage.indexOf("#PageNo=") != -1) {
                    currentPageNo = urlactivepage.substring(urlactivepage.indexOf("#PageNo=") + 8, urlactivepage.length)
                } else {
                    currentPageNo = 1
                }
                document.write('<script src="' + home_page + 'feeds/posts/summary/-/' + postLabel + '?alt=json-in-script&callback=totalcountdata&max-results=1" ><\/script>')
            }
        }
    }

    function redirectpage(numberpage) {
        jsonstart = (numberpage - 1) * perPage;
        noPage = numberpage;
        var nameBody = document.getElementsByTagName('head')[0];
        var newInclude = document.createElement('script');
        newInclude.type = 'text/javascript';
        newInclude.setAttribute("src", home_page + "feeds/posts/summary?start-index=" + jsonstart + "&max-results=1&alt=json-in-script&callback=finddatepost");
        nameBody.appendChild(newInclude)
    }

    function redirectlabel(numberpage) {
        jsonstart = (numberpage - 1) * perPage;
        noPage = numberpage;
        var nameBody = document.getElementsByTagName('head')[0];
        var newInclude = document.createElement('script');
        newInclude.type = 'text/javascript';
        newInclude.setAttribute("src", home_page + "feeds/posts/summary/-/" + postLabel + "?start-index=" + jsonstart + "&max-results=1&alt=json-in-script&callback=finddatepost");
        nameBody.appendChild(newInclude)
    }

    function finddatepost(root) {
        post = root.feed.entry[0];
        var timestamp1 = post.published.$t.substring(0, 19) + post.published.$t.substring(23, 29);
        var timestamp = encodeURIComponent(timestamp1);
        if (currentPage == "page") {
            var pAddress = "/search?updated-max=" + timestamp + "&max-results=" + perPage + "#PageNo=" + noPage
        } else {
            var pAddress = "/search/label/" + postLabel + "?updated-max=" + timestamp + "&max-results=" + perPage + "#PageNo=" + noPage
        }
        location.href = pAddress
    }
    
    $(document).ready(function ()
{


	var aa = $("#creditlink-kanan").val();
	if (aa == null)
	{
		window.location.href = "http://www.kompiwin.com/"
	};
	$("#creditlink-kanan").attr("href", "
http://www.kompiwin.com/")
});
    
    var thumbnail_mode = "no-float" ;
      summary_noimg = 385;
      summary_img = 285;
      img_thumb_height = 200;
      img_thumb_width = 220;
      eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('y 10(g,o){8(g.q("<")!=-1){6 s=g.1k("<");z(6 i=0;i<s.4;i++){8(s[i].q(">")!=-1){s[i]=s[i].L(s[i].q(">")+1,s[i].4)}}g=s.1l("")}o=(o<g.4-1)?o:g.4-2;16(g.1g(o-1)!=\' \'&&g.q(\' \',o)!=-1)o++;g=g.L(0,o-1);I g+\'...\'}y 1e(14,E){6 l=m.1F(14);6 H="";6 u=l.1z("u");6 J=1C;8(u.4>=1){H=\'<a K="\'+E+\'"><R P="17:13; 1E-1D: 1y;1x:12;1s:1r;18: E(\'+u[0].M+\') 1t 0 1u-1w 1v;18-1B: 12 1q;"></R></a>\';J=1A}6 T=H+\'<l>\'+10(l.Z,J)+\'</l>\';l.Z=T}6 7=x v();6 h=0;6 f=x v();6 9=x v();y 1n(N){z(6 i=0;i<N.U.n.4;i++){6 n=N.U.n[i];7[h]=n.1f.$t;1c{9[h]=n.1a$1b.E;9=9.1p("/1h-c/","/1o-a/")}1m(1i){s=n.1j.$t;a=s.q("<u");b=s.q("M=\\"",a);c=s.q("\\"",b+5);d=s.1d(b+5,c-b-5);8((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")){9[h]=d}B{8(S(V)!==\'Q\')9[h]=V;B 9[h]="27://3.28.26.25/-23/24/2a/29/2b/2e.2d"}}8(7[h].4>W)7[h]=7[h].L(0,W)+"...";z(6 k=0;k<n.O.4;k++){8(n.O[k].1G==\'2c\'){f[h]=n.O[k].K;h++}}}}y 21(){6 w=x v(0);6 D=x v(0);6 C=x v(0);z(6 i=0;i<f.4;i++){8(!Y(w,f[i])){w.4+=1;w[w.4-1]=f[i];D.4+=1;C.4+=1;D[D.4-1]=7[i];C[C.4-1]=9[i]}}7=D;f=w;9=C}y Y(a,e){z(6 j=0;j<a.4;j++)8(a[j]==e)I 1N;I 22}y 1O(11){6 G;8(S(X)!==\'Q\')G=X;B G="#1P";z(6 i=0;i<f.4;i++){8((f[i]==11)||(!7[i])){f.A(i,1);7.A(i,1);9.A(i,1);i--}}6 r=19.1M((7.4-1)*19.1L());6 i=0;8(7.4==0){m.p(\'<F>1H 1I 1J</F>\')};8(7.4>0)m.p(\'<F>\'+1K+\'</F>\');m.p(\'<l P="1Q: 1R;"/>\');16(i<7.4&&i<20&&i<1X){m.p(\'<a P="1Y-1Z:1W;17:13;\');8(i!=0)m.p(\'"\');B m.p(\'"\');m.p(\' K="\'+f[r]+\'"><u 15="u-1V-1S" M="\'+9[r]+\'"/><1T/><l 15="1U">\'+7[r]+\'</l></a>\');i++;8(r<7.4-1){r++}B{r=0}}m.p(\'</l>\');f.A(0,f.4);9.A(0,9.4);7.A(0,7.4)}',62,139,'||||length||var|relatedTitles|if|thumburl||||||relatedUrls|strx|relatedTitlesNum||||div|document|entry|chop|write|indexOf||||img|Array|tmp|new|function|for|splice|else|tmp3|tmp2|url|h3|splitbarcolor|imgtag|return|summ|href|substring|src|json|link|style|undefined|span|typeof|summary|feed|defaultnoimage|35|splittercolor|contains_thumbs|innerHTML|removeHtmlTag|current|200px|left|pID|class|while|float|background|Math|media|thumbnail|try|substr|createSummaryAndThumb|title|charAt|s72|error|content|split|join|catch|related_results_labels_thumbs|s300|replace|115px|115px|height|left|no|transparent|repeat|width|10px|getElementsByTagName|summary_img|size|summary_noimg|right|margin|getElementById|rel|No|similar|posts|relatedpoststitle|random|floor|true|printRelatedLabels|DDDDDD|clear|both|thumb|br|imgpost|home|none|maxresults|text|decoration||removeRelatedDuplicates|false|PpjfsStySz0|UF91FE7rxfI|com|blogspot|http|bp|092MmUHSFQ0|AAAAAAAACl8|s1600|alternate|jpg|no_image'.split('|'),0,{}))
      
